#include "system_fn.h"

extern UART_HandleTypeDef huart6;


int fputc(int ch, FILE *f) 
{
  HAL_UART_Transmit(&huart6, (uint8_t *)&ch, 1, 0xFFFF);
  return ch;
}



uint8_t String_Compare(uint8_t *str1,uint8_t *str2,uint16_t length)
{
	uint16_t i;
	for(i=0;i<length;i++)
	{
		if(str1[i] != str2[i])
		{
			return 2;
		}
	}
	return 0;
}


